package com.pine.common.threadpool;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 拒绝策略枚举
 *
 * @author pine manage
 * @since 2024-08-28
 */
@AllArgsConstructor
@Getter
public enum RejectedPolicyCodeEnum implements RejectedPolicyCode {

    ABORT_POLICY("AbortPolicy"),
    DISCARD_POLICY("DiscardPolicy"),
    DISCARD_OLDEST_POLICY("DiscardOldestPolicy"),
    CALLER_RUNS_POLICY("CallerRunsPolicy");

    /**
     * 拒绝策略编码
     */
    private final String code;
}
